package com.zbmy.plugin.im.client.enums;

/**
 * 提现状态
 * @ClassName: CashStatusEnum    
 * @author 刘灶勇    
 * @date 2018年4月16日 下午3:18:20    
 * @version  v 1.0
 */
public enum CashStatusEnum {
	//提现状态 1待处理  2处理中 3 打款成功  4 打款失败
	NOT_PAID(1,"待处理"),
	GROUP_BOOKING(2,"处理中"),
	GROUP_FAIL_NOT_REFUND(3,"打款成功"),
	GROUP_FAIL_ALREADY_REFUND(4,"打款失败");
	
	private Integer status;
	private String desc;
	CashStatusEnum(Integer status,String desc){
		this.status = status;
		this.desc = desc;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public static CashStatusEnum getDescByStatus(Integer status) {
		for (CashStatusEnum types : CashStatusEnum.values()) {
			if (types.getStatus().equals(status)) {
				return types;
			}
		}
		return null;
	}
}
